.class Lcom/waiqin365/lightapp/visit/df;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/visit/draglistview/m;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a_(II)V
    .locals 4

    const/4 v2, 0x0

    if-eq p1, p2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/ah;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightapp/visit/b/ah;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p2, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/ah;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/ah;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->a(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/ah;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/b/ah;->notifyDataSetChanged()V

    const-string/jumbo v0, ""

    move v1, v2

    :goto_0
    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v1, v3, :cond_0

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->a:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    move-object v0, v3

    goto :goto_0

    :cond_0
    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/df;->a:Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/visit/SeniorVisitPlanManagerActivity;->a(Ljava/lang/String;)V

    :cond_2
    return-void
.end method
